Expand description
§Oxc AST
Abstract Syntax Tree nodes for Oxc. Supports both TypeScript and JavaScript.
This is almost similar to estree except a few places:
Identifier
is replaced with explicitBindingIdentifier
,IdentifierReference
,IdentifierName
per specAssignmentExpression
.left
Pattern
is replaced withAssignmentTarget
§Parsing
You can obtain an AST by parsing source code with a Parser
from oxc_parser
.
§Cargo Features
"serde"
enables support for serde serialization
Re-exports§
Modules§
- AST Definitions
Macros§
- Macro for matching
AssignmentTarget
’s variants. IncludesSimpleAssignmentTarget
’s andAssignmentTargetPattern
’s variants. - Macro for matching
AssignmentTargetPattern
’s variants. - Macro for matching
Declaration
’s variants. - Macro for matching
Expression
’s variants. IncludesMemberExpression
’s variants. - Macro for matching
MemberExpression
’s variants. - Macro for matching
ModuleDeclaration
’s variants. - Macro for matching
SimpleAssignmentTarget
’s variants. IncludesMemberExpression
’s variants - Macro for matching
TSType
’s variants. - Macro for matching
TSTypeName
’s variants.
Structs§
- AST builder for creating AST nodes
- A big unsigned integer type.
- Single or multiline comment
Enums§
- Untyped AST Node Kind
Type Aliases§
- Sorted set of unique trivia comments, in ascending order by starting position.